<template>
  <div class="nav">
    <van-nav-bar title="登录" left-arrow @click-left="onClickLeft" />
  </div>
</template>

<script>
export default {
  methods: {
    onClickLeft() {
      this.$router.push("/Mine").catch((err) => {});
    },
  },
};
</script>

<style scoped>
.nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 666;
}
</style>